//
// Created by rebeater on 2/16/21.
//

#ifndef DECODE_NMEA_NMEA_DECODE_H
#define DECODE_NMEA_NMEA_DECODE_H

#include "NavStruct.h"
#define NMEA_VERSION_3_00 3
#define EMEA_VERSION_4_00 4

#define NMEA_VERSION  NMEA_VERSION_3_00

typedef enum {
    NMEA_OK = 0,
    NMEA_INVALID_POSITION = 1,
    NMEA_CHECK_FAILED = 2,
    NMEA_NOT_FULL = 3
} NmeaErrorCode;
extern int week;
extern double gpst_start_of_day;
NmeaErrorCode decode_single_msg(const char *msg, GnssData *gnss);
NmeaErrorCode decode_multi_msgs(const char *msg, GnssData *gnss);

#endif //DECODE_NMEA_NMEA_DECODE_H
